import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { FetchService } from '../../../core/net/fetch.service';
import { NzMessageService } from 'ng-zorro-antd';

@Component({
  selector: 'app-water-charge',
  templateUrl: './water-charge.component.html',
  styleUrls: ['./water-charge.component.scss']
})
export class WaterChargeComponent implements OnInit {
  date = null;
  tableData = [
    {a: '唐徕渠管理处', b: '6.33', c: '2294', d: '1911', e: 83.3, f: '86.6'},
    {a: '西干渠管理处', b: '3.12', c: '1130', d: '848', e: 75, f: ''},
    {a: '惠农渠管理处', b: '5.40', c: '1986', d: '1490', e: 75, f: '87.6'},
    {a: '汉延渠管理处', b: '2.44', c: '852', d: '767', e: 90, f: '90.7'},
    {a: '秦汉渠管理处', b: '7.50', c: '2718', d: '2582', e: 95, f: '84.0'},
    {a: '渠首管理处', b: '1.57', c: '568', d: '284', e: 50, f: '85.1'},
    {a: '七星渠管理处', b: '6.27', c: '2270', d: '1021', e: 45, f: '86.8'},
    {a: '宁西公司', b: '1.55', c: '652', d: '456', e: 70, f: ''},
    {a: '沙坡头水务局', b: '3.48', c: '1200', d: '960', e: 80, f: '85.0'},
    {a: '固海扬水管理处', b: '2.01', c: '724', d: '362', e: 50, f: ''},
    {a: '红寺堡扬水管理处', b: '2.44', c: '3007', d: '1804', e: 60, f: '87.0%'},
    {a: '盐环定扬水管理处', b: '1.04', c: '362', d: '290', e: 80, f: '89.6'},
  ];
  constructor(private fb: FormBuilder,
              private fetchService: FetchService,
              private message: NzMessageService) {

  }

  ngOnInit() {

  }

  onChange(result: Date): void {
    console.log('onChange: ', result);
  }
}
